package cn.iune;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@SpringBootApplication
public class CmsMallApplication {

	public static void main(String[] args) {
		SpringApplication.run(CmsMallApplication.class, args);
	}

	
	/**
	 * 主页控制器
	 */
	@Controller
	@RequestMapping(value = "/")
	public class IndexController {
		
//	    @RequestMapping(value = "/")
//	    public String index(){
//	        System.out.println("/index");
//	        return "index";
//	    }
	    
	    @RequestMapping(value = "/admin", method=RequestMethod.GET)
	    public String admin(){
	        System.out.println("/admin");
	        return "admin/index";
	    }

	    
	    
	}

}
